﻿using STHPMS1.Common.C_Entity;
using STHPMS1.Common.C_Entity.Stmpms1;
using STHPMS1.Web.W_Core;
using System;

namespace STHPMS1.Web.W_View.TestPage
{
    public partial class TestPage2 : MyPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            throw new Exception("TTTT");
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            for (int i = 1; i < 100; i++)
            {
                Test entity = new Test();
                entity.Name = "name" + i.ToString();
                entity.Quantity = i;
                entity.Unit = "unit" + i.ToString();
                //entity.UnitPrice = i;
                this.Scene.Bll.Test.Save(entity);
            }
        }
    }
}